package com.tomehay.termprojectmanage_server.service;

import com.tomehay.termprojectmanage_server.pojo.DTO.LoginDto;
import com.tomehay.termprojectmanage_server.pojo.Model.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tomehay.termprojectmanage_server.pojo.Model.Teacher;
import com.tomehay.termprojectmanage_server.pojo.VO.ResultVO;
import com.tomehay.termprojectmanage_server.pojo.VO.StudentVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tomehay
 * @since 2023-06-20
 */
public interface StudentService extends IService<Student> {

    void exportExcelModel(HttpServletResponse response) throws IOException;

    ResultVO<Void> BatchAddStudents(MultipartFile multipartFile);

    ResultVO<List<Student>> GetStudentsByClazzID(int clazzId);

    ResultVO<Void> CreateStudent(Student student);

    ResultVO<Void> UpdateStudent(Student student);

    ResultVO<Void> RemoveStudent(int id);

    ResultVO<StudentVO> Login(LoginDto loginDto);
}
